package entity

import (
	"shqsoft.cn/pasnj/base"
)

//SysUser 用户
type SysUser struct {
	ID       int    `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	No       string `gorm:"column:SysUserID;size:10"`
	OrganID  int    `gorm:"column:OrganID"`
	Name     string `gorm:"column:SysUserName;size:20"`
	Password string `gorm:"column:Password;size:500"`
	// ModifyPWDDate *time.Time `gorm:"column:ModifyPWDDate;type:date;"`
}

//TableName User用户表名
func (SysUser) TableName() string {
	return "V_SysUser_Sort"
}

func SysUserEF() base.EntityFunc {
	return func() interface{} {
		entity := SysUser{}
		return &entity
	}
}
func SysUserESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []SysUser
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("SysUser", base.NewDefaultDao(SysUserEF(), SysUserESF(), nil))
}
